package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbChatPageMapper;
import com.ruoyi.system.domain.TbChatPage;
import com.ruoyi.system.service.ITbChatPageService;

/**
 * 聊天界面Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class TbChatPageServiceImpl implements ITbChatPageService 
{
    @Autowired
    private TbChatPageMapper tbChatPageMapper;

    /**
     * 查询聊天界面
     * 
     * @param chatId 聊天界面主键
     * @return 聊天界面
     */
    @Override
    public TbChatPage selectTbChatPageByChatId(Long chatId)
    {
        return tbChatPageMapper.selectTbChatPageByChatId(chatId);
    }

    /**
     * 查询聊天界面列表
     * 
     * @param tbChatPage 聊天界面
     * @return 聊天界面
     */
    @Override
    public List<TbChatPage> selectTbChatPageList(TbChatPage tbChatPage)
    {
        return tbChatPageMapper.selectTbChatPageList(tbChatPage);
    }

    /**
     * 新增聊天界面
     * 
     * @param tbChatPage 聊天界面
     * @return 结果
     */
    @Override
    public int insertTbChatPage(TbChatPage tbChatPage)
    {
        return tbChatPageMapper.insertTbChatPage(tbChatPage);
    }

    /**
     * 修改聊天界面
     * 
     * @param tbChatPage 聊天界面
     * @return 结果
     */
    @Override
    public int updateTbChatPage(TbChatPage tbChatPage)
    {
        return tbChatPageMapper.updateTbChatPage(tbChatPage);
    }

    /**
     * 批量删除聊天界面
     * 
     * @param chatIds 需要删除的聊天界面主键
     * @return 结果
     */
    @Override
    public int deleteTbChatPageByChatIds(Long[] chatIds)
    {
        return tbChatPageMapper.deleteTbChatPageByChatIds(chatIds);
    }

    /**
     * 删除聊天界面信息
     * 
     * @param chatId 聊天界面主键
     * @return 结果
     */
    @Override
    public int deleteTbChatPageByChatId(Long chatId)
    {
        return tbChatPageMapper.deleteTbChatPageByChatId(chatId);
    }
}
